
export const constantRouterMap = [
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/Index.vue')
    },
    {
        path: '/wechatqrcode',
        name: 'wechatqrcode',
        component: () => import('@/components/WeChatQRCode.vue')
    },
    {
        path: '/verify',
        name: 'verify',
        component: () => import('@/components/VerifyEmpty.vue')
    },

]

export const asyncRouterMap = [
    {
        path: '/',
        redirect: '/home',
        component: () => import('@/views/Index.vue'),
        children: [
            {
                path: '/home',
                name: "首页",
                meta: {
                    icon: "HelpFilled",
                    permission: ['home']
                },
                component: () => import('@/views/home/Index.vue')
            },
            {
                path: '/talk',
                name: '吐槽',
                meta: {
                    icon: "Histogram",
                },
                children: [
                    {
                        path: '/talk/chat',
                        name: '聊天频道',
                        meta: {
                            icon: "Menu",
                        },
                        component: () => import('@/views/talk/chat.vue'),
                    },
                ]
            },
        ]
    },

]